xpat2 may be compiled with the Athena widget set (or its nicer replacement, the Xaw3d widget set), or with a standard Xlib interface. The command line parameters and X resource names of these versions differ. This manual page describes only the Athena widget version, for the Xlib options please refer to the xpat manual page.
This option specifies the initial rule set for xpat. Valid rule names are Gypsy, Spider, FreeCell, Klondike, and Seahaven, Monte Carlo, Calculation, Canfield, Baker's Dozen, and others. Supply an invalid rule name to see a complete listing.
The initial rule set may also be given by the name of the executable (capitalisation is important). A predefined rule set may be customized by the following options, but not all options apply to every rule set.
Use a different number of slots.
Use a different number of temporary storage places.
Use a different number of decks. Every deck has a full set of 52 cards. This option does also set the number of stacks. (To 4 times the number of decks, naturally.)
Specifies the number of cards per slot which are initially dealt face-down (i.e. invisible).
Specifies the number of cards per slot which are initially dealt face-up.
Specifies the number of jokers in the game (increasing the number of cards). With jokers, you have to put all ordinary cards onto the stacks and keep the jokers on the slots.
Defines game specific customisation parameters.
This option affects the random number generator. rng 0 (used up to version 1.03 of xpat2) has been found to generate not uniformly distributed permutations. You may activate it to be able to replay old saved games. The default is rng 1.
Other options are:
cardset is the filename of an external bitmap card set which will be used instead of the built-in cardset. There are two card sets, namely small and french. You can also give the full pathname of a cardset here. This option works with the bitmap drawing routine only.
Tells xpat2 to search xpmdir for colour replacements of the card images. The filenames searched for are Joker.xpm and Rank.Suit.xpm, where Rank is one of Two to Ten, or one of Jack, Queen, King, Ace. The display must be capable of displaying all images at the same time. For a 256-colour display, no more than 128 colours should be used for all card images together. An additional file, Cardback.xpm, may give you nice cardbacks.
If the directory name xpmdir does not start with a dot or a slash, it is interpreted as a subdirectory of /usr/games/lib/xpat.
Sets the background color to color. The default is LightSlateGrey.
Sets the background color of the cards to color. The default is SlateGrey. This option is not in effect when an XPM replacement for the cardback is used.
Sets the width of the dashed frame which marks selected cards. If this width is at least half of the card width, marked cards will be shaded. The default is to shade the cards.
Sets the color of the marking frame.
Enables or Disables sound.
/usr/games/bin/xpat2
/var/games/xpat.log
/usr/doc/xpat/COPYRIGHT.{GNU,spider,xpm}
/usr/games/lib/xpat/small.cards
/usr/games/lib/xpat/french.cards
/usr/games/lib/xpat/audio/success.au
/usr/games/lib/xpat/audio/giveup.au
/usr/games/lib/xpat/audio/goodbye.au
/usr/games/lib/xpat/audio/cannotsave.au
/usr/games/lib/xpat/help.*
/usr/games/lib/xpat/hlp*
and a number of subdirs of /usr/games/lib/xpat, containing sets of colour cards.
Only a few rule custonisations are checked and meaningful.
The Motif interface doesn't work. Any volunteers?
There is a problem with X-servers which are short on memory. In this case, some parts of the xpat2 window may be left blank after a resize event. You have to hit <ctrl-L> to get the window redrawn correctly.
Please mail bug reports to mbi@mo.math.nat.tu-bs.de. Fixes are especially welcome.
Copyright (c) 1990 by David Lemke & Network Computing Devices, Inc.
(lemke@ncd.com)
Copyright 1990 Heather Rose and Sun Microsystems, Inc.
Copyright (c) 1989, Donald R. Woods and Sun Microsystems, Inc.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.
xpat and xpat2 were developed under Linux, the free UNIX for the IBM-PC and compatibles. xpat is based on the game spider. All new code which is not covered by spider copyrights is distributed by terms of the GNU General public license (GNU Copyleft).